import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "views/home"
import Gc from "views/gc"
import Recommend from "views/recommend"
import My from "views/my"
Vue.use(VueRouter)

const routes = [
	{
	path: '/',
	name: "home",
	component: Home
	},
	{
	path: '/gc',
	name: "gc",
	component: Gc
	},{
	path: '/recommend',
	name: "recommend",
	component: Recommend
	},{
	path: '/my',
	name: "my",
	component: My
	},
	
]

const router = new VueRouter({
	scrollBehavior () {
		return { x: 0, y: 0 }
	},
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router
